import 'package:oramemo/generated/json/base/json_field.dart';
import 'package:oramemo/generated/json/conversation_list_entity.g.dart';
import 'dart:convert';
export 'package:oramemo/generated/json/conversation_list_entity.g.dart';

@JsonSerializable()
class ConversationListEntity {
	int? total;
	List<ConversationListRows>? rows;
	int? code;
	String? msg;

	ConversationListEntity();

	factory ConversationListEntity.fromJson(Map<String, dynamic> json) => $ConversationListEntityFromJson(json);

	Map<String, dynamic> toJson() => $ConversationListEntityToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}

@JsonSerializable()
class ConversationListRows {
	String? createTime;
	ConversationListRowsParams? params;
	int? id;
	int? deviceId;
	int? conversationType;
	String? inPhone;
	String? outPhone;
	String? hangupTime;
	String? firstWord;
	int? callDuration;
	int? voiceRecordId;

	ConversationListRows();

	factory ConversationListRows.fromJson(Map<String, dynamic> json) => $ConversationListRowsFromJson(json);

	Map<String, dynamic> toJson() => $ConversationListRowsToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}

@JsonSerializable()
class ConversationListRowsParams {


	ConversationListRowsParams();

	factory ConversationListRowsParams.fromJson(Map<String, dynamic> json) => $ConversationListRowsParamsFromJson(json);

	Map<String, dynamic> toJson() => $ConversationListRowsParamsToJson(this);

	@override
	String toString() {
		return jsonEncode(this);
	}
}